package org.whut.practice.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.whut.practice.mapper.InspectionMapper;
import org.whut.practice.pojo.Inspection;

import java.util.List;

@Service
public class InspectionService {
    @Autowired
    private InspectionMapper inspectionMapper;

    public int addInspection(Inspection inspection) {
        return inspectionMapper.addInspection(inspection);
    }

    public List<Inspection> selectInspections(String time, String classes, String category, String name, String group) {
        return inspectionMapper.selectList(time, classes, category, name, group);
    }
}
